﻿<%@ include file="/common/validate.jsp"%>
<%
    Feedback feedback = Feedback.fromMap(parameters, Feedback.class);
    String suggestion = input.getDesc("suggestion", "");
    if (suggestion.length() < 1 || suggestion.length() > 200) {
        msg = new Message(30002, "反馈意见1-200个字符");
        Tools.encryptPrint(out, msg);
        return;
    }
    Integer id = (Integer)DBTools.db("basedb").addItem(feedback);
    if (id == null) {
        msg = new Message(30002, "反馈失败");
        Tools.encryptPrint(out, msg);
        return;
    }
    Tools.encryptPrint(out, msg);
%>
